//
// api.js
// vue3-element-admin
//
// Created by 区区电脑 on 2023/04/11.
//


import request from "@/request"

// 添加
export function AddDeviceInfo(data = {}) {
    return request({url: '/api/Device/AddDeviceInfo', method: 'post', data})
}

// 删除
export function DeleteDeviceInfo(params = {}) {
    return request({url: '/api/Device/DeleteDeviceInfo', method: 'delete', params})
}

// 修改
export function UpdateDeviceInfo(data = {}) {
    return request({url: '/api/Device/UpdateDeviceInfo', method: 'put', data})
}

/**
 * 设备分页
 * @param params
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetDevicePageList(params = {}, data = {}) {
    return request({url: '/api/Device/GetDevicePageList', method: 'post', params, data})
}

/**
 * 查询程序列表
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetProgramList(data = {}) {
    return request({url: '/api/Program/GetProgramList', method: 'post', data})
}



